// token方法

// token字段名
const TokenKey = "token_key";

// 存入token
export const setToken = (token: string) => {
  localStorage.setItem(TokenKey, token);
};

// 获取token
export const getToken = () => {
  return localStorage.getItem(TokenKey) || "";
};

// 删除token
export const delToken = () => {
  localStorage.removeItem(TokenKey);
};
